import {
  IsOptional,
  IsNotEmpty,
  IsNumber,
  IsObject
} from 'class-validator';

export class SplitPageDto {
  @IsOptional()
  @IsNumber()
  page?: number = undefined;

  @IsOptional()
  @IsNumber()
  pageSize?: number = undefined;

  @IsOptional()
  @IsObject()
  filters?: Record<string, any> = undefined;

  @IsOptional()
  @IsObject()
  sorter?: Record<string, any> = undefined;
}

